package com.example.comsys.dao;

import com.example.comsys.dataobject.WageDO;
import com.example.comsys.param.WageQueryParam;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface WageDAO {

  int deleteByPrimaryKey(Long id);

  int deleteWageInfo(@Param("startYear") int sy, @Param("startMonth") int sm, @Param("endYear") int ey,
      @Param("endMonth") int em, @Param("departId") Long departOd);

  int insert(WageDO record);

  int batchInsert(@Param("wages") List<WageDO> records);

  WageDO selectByPrimaryKey(Long id);

  List<WageDO> selectAll();

  List<WageDO> selectByParam(WageQueryParam param);

  int updateByPrimaryKey(WageDO record);
}